oracle.pgx.api

## Class PgxEntity<ID extends Comparable<ID>>

- java.lang.Object
- - oracle.pgx.api.PgxEntity<ID>

- Type Parameters:
    `ID` - the ID type of this entity
  Direct Known Subclasses:
    PgxEdge, PgxVertex

      public abstract class PgxEntity<ID extends Comparable<ID>>
      extends Object

  An abstraction of vertex and edge.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `PgxGraph` | `getGraph()` Gets the graph.
    `ID` | `getId()` Gets the id.
    `IdType` | `getType()` Gets the type.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### getGraph

          public PgxGraph getGraph()

      Gets the graph.
      Returns:
        the graph the entity is bound to

    - #### getId

          public ID getId()

      Gets the id.
      Returns:
        the entity's id

    - #### getType

          public IdType getType()

      Gets the type.
      Returns:
        the entity's type

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2015. All rights reserved.